package com.dq.repository.goods;

import com.dq.domain.goods.HotSearchGoods;
import com.dq.domain.org.Org;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author liuhui
 * @date 2019/10/11 0011 17:16:15
 */
@Repository
public interface HotSearchGoodsRepository extends JpaRepository<HotSearchGoods, Long> {
    List<HotSearchGoods> findByOrgAndDeletedFalseOrderBySearchNumDesc(Org org);

    HotSearchGoods getByNameAndDeletedFalse(String name);
}
